//
//  FindPlaceViewController.h
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/7/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>

@interface FindPlaceViewController : UIViewController <UISearchBarDelegate, UITableViewDataSource, UITableViewDelegate, UIScrollViewDelegate> {
    UISearchBar *placeSearchBar;
    UITableView *placeTableView;
    MKMapView *placeMapView;
    UIView *maskView;
    UIButton *selectAnnotationButton;
    UIView *hiddenView;
    
    NSMutableArray *_places;
    NSMutableArray *placesNeedDisplay;
}

@property (nonatomic, retain) IBOutlet UISearchBar *placeSearchBar;
@property (nonatomic, retain) IBOutlet UITableView *placeTableView;
@property (nonatomic, retain) IBOutlet MKMapView *placeMapView;
@property (nonatomic, retain) IBOutlet UIView *maskView;
@property (nonatomic, retain) IBOutlet UIView *hiddenView;
@property (nonatomic, retain) IBOutlet UIButton *selectAnnotationButton;
@property (nonatomic, retain) NSMutableArray *places;
@property (nonatomic, retain) NSMutableArray *placesNeedDisplay;

- (IBAction)cancelButtonPressed:(id)sender;
- (IBAction)selectAnnotationButtonPressed:(id)sender;
- (IBAction)maskViewTapped:(id)sender;

// for searching
- (void)resetSearch;
- (void)handleSearchForTerm:(NSString *)searchTerm;

@end
